package net.lab0.fractal.abstracts;


public enum FractalState
{
	
	/**
	 * The fractal computation didn't begin
	 */
	NOT_STARTED,
	
	/**
	 * The fractal is now computed
	 */
	RUNNING,
	
	/**
	 * The fractal computation has been paused in a state where it is able to continue without creating a new thread
	 */
	PAUSED,
	
	/**
	 * The fractal was requested to end as soon as possible and the computation is going to end
	 */
	RESTARTING,
	
	/**
	 * The fractal was requested to end as soon as possible and the computation is going to end
	 */
	STOPPING,
	
	/**
	 * The fractal thread has been terminated and the fractal can't be computed anymore
	 */
	FINISHED, 
	
	;
	
	private final String	text;
	
	private FractalState(String text)
	{
		this.text = text;
	}
	
	private FractalState()
	{
		this.text = "" + this;
	}
	
	public String getText()
	{
		return text;
	}
}
